package com.example.eventbusdemo;

import androidx.annotation.NonNull;

import java.lang.reflect.Method;

/**
 * 将封装方法的对象
 *
 * @author wdl
 */
public class SubscribeMethod {

    /**
     * 方法本身
     */
    private Method method;
    /**
     * 方法的线程模式
     */
    private ThreadMode threadMode;
    /**
     * 方法中的参数类型
     */
    private Class<?> type;

    public SubscribeMethod(Method method, ThreadMode threadMode, Class<?> type) {
        this.method = method;
        this.threadMode = threadMode;
        this.type = type;
    }

    public Method getMethod() {
        return method;
    }

    public Class<?> getType() {
        return type;
    }

    public ThreadMode getThreadMode() {
        return threadMode;
    }
}
